<template>
	<!-- components/shadePopup/shadePopup.wxml -->
	<view class="shade_wrap" v-if="show">
		<view class="shade"></view>
		<view class="content">
			<image src="https://oos-cn.ctyunapi.cn/front-end/static/static/delete.png" @tap="close" class="close">
			</image>
			<slot></slot>
		</view>
	</view>
</template>
<script>
	'use strict'; // components/tabbar.ts

	var app = getApp();

	var scanCode = require('./../../utils/scanCode.js');

	export default {
		data() {
			return {

			};
		},
		options: {
			multipleSlots: true, // 在组件定义时的选项中启用多 slot 支持
			// styleIsolation: 'shared'
		},
		/**
		 * 组件的属性列表
		 */
		props: {
			show: { // 属性名
				type: Boolean,
				value: false
			},
		},
		created: function() {

		},
		/**
		 * 组件的方法列表
		 */
		methods: {
			close() {
				this.$emit('close', false)
			}
		}
	};
</script>
<style lang="less" scoped>
	.shade_wrap {
		position: relative;
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 999;

		.shade {
			position: fixed;
			top: 0;
			bottom: 0;
			left: 0;
			right: 0;
			// z-index: 1000000000000000000;
			background-color: rgba(0, 0, 0, 0.7);
			// background-color: yellow;
		}

		.content {
			display: flex;
			justify-content: center;
			align-items: center;
			width: 580rpx;
			height: 620rpx;
			position: fixed;
			top: 0;
			bottom: 0;
			left: 0;
			right: 0;
			margin: auto;


			.close {
				width: 50rpx;
				height: 50rpx;
				top: -83rpx;
				right: 0;
				position: absolute;
			}
		}

	}
</style>